package com.fafu.common.web.mybatis.anno;

import com.fafu.common.web.mybatis.Logic;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author hc
 * <p>
 * 如果操作数等于，则返回true
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface EQ {
    /**
     * 逻辑
     *
     * @return
     */
    String logic() default Logic.and;

    String value() default "";
}
